home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
program
/
245
/
radiohgh.lst
< prev
next >
Wrap
File List
|
1988-10-10
|
4KB
|
146 lines
ialog_box
Prooocedure Dialog_box
' DIALOG CONSTRUCTION SET (c) Programmed by Derrick Anthony Hall
'
' PERMISSION GRANTED TO USE DIALOG CONSTRUCTION SET (c)
' GENERATED SOURCE CODE WITHIN GFA BASIC PROGRAMS.
'
' Source code can be published or upload to bulletin boards.
'
' I only ask that you give VISIBLE CREDIT within your program to
' Dialog Construction Set resource editor.
'
' Have fun and enjoy!
' Merge this source LST file into your program
@Shrink_grow(1,5,5,5,5,96,32,442,272)
Sget Yourname$
Graphmode 1
Deffill 0,2,8
' DIALOG box parameters
' Box #1
' Insert Deffill here, to fill boxes with color or pattern
Pbox 119,67,522,347
Box 119,67,522,347
Deffill 0,2,8 !reset Deffill to normal, if box area is colored or filled.
' Box #2
' Insert Deffill here, to fill boxes with color or pattern
Deffill 1,2,6
Pbox 121,71,520,343
Box 121,71,520,343
Deffill 0,2,8 !reset Deffill to normal, if box area is colored or filled.
' Box #3
' Insert Deffill here, to fill boxes with color or pattern
Pbox 141,84,505,105
Box 141,84,505,105
Deffill 0,2,8 !reset Deffill to normal, if box area is colored or filled.
' Box #4
' Insert Deffill here, to fill boxes with color or pattern
Pbox 164,126,482,292
Box 164,126,482,292
Deffill 0,2,8 !reset Deffill to normal, if box area is colored or filled.
' TOUCHEXIT button parameters
' Box #1
' Insert Deffill here, to fill boxes with color or pattern
Pbox 292,315,361,339
Box 292,315,361,339
Deffill 0,2,8 !reset Deffill to normal, if box area is colored or filled.
' RADIO button parameters
' Box #1
Clr Radio1%
' Insert Deffill here, to fill boxes with color or pattern
Pbox 227,158,415,186
Box 227,158,415,186
Deffill 0,2,8 !reset Deffill to normal, if box area is colored or filled.
' Box #2
Clr Radio2%
' Insert Deffill here, to fill boxes with color or pattern
Pbox 227,219,414,247
Box 227,219,414,247
Deffill 0,2,8 !reset Deffill to normal, if box area is colored or filled.
' To change text FONT and COLOR use the command DEFTEXT
Text 318,333,"OK"
Text 288,177,"Radio One"
Text 290,240,"Radio Two"
Text 192,100,"Radio demo by Derrick Anthony Hall"
Do
K=Mousek
While K=1
Mouse X,Y,K
If X>292 And Y>315 And X<361 And Y<339 And K
Graphmode 2
Deffill 1,2,8
Pbox 292,315,361,339
Graphmode 3
Text 318,333,"OK"
Pause 8
Goto Buttonend
Endif
If X>227 And Y>158 And X<415 And Y<186 And K
Deffill 1,2,8
If Radio1%=0
Radio1%=1
Deftext 0
Graphmode 1
Pbox 227,158,415,186
Graphmode 2
Text 288,177,"Radio One"
Pause 8
Else
Graphmode 1
Radio1%=1
Deffill 0,2,8
Pbox 227,158,415,186
Box 227,158,415,186
Deftext 1
Text 288,177,"Radio One"
Radio1%=0
Pause 8
Endif
Endif
If X>227 And Y>219 And X<414 And Y<247 And K
Deffill 1,2,8
If Radio2%=0
Radio2%=1
Deftext 0
Graphmode 1
Pbox 227,219,414,247
Graphmode 2
Text 290,240,"Radio Two"
Pause 8
Else
Graphmode 1
Radio2%=1
Deffill 0,2,8
Pbox 227,219,414,247
Box 227,219,414,247
Deftext 1
Text 290,240,"Radio Two"
Radio2%=0
Pause 8
Endif
Endif
Wend
Loop
Buttonend:
Sput Yourname$
Clr Yourname$
Graphmode 1
@Shrink_grow(0,5,5,5,5,104,38,482,327)
Return
'
Procedure Shrink_grow(Gem,Lightx,Lighty,Wsgx,Hsgy,Lox,Loy,Wx,Hy)
Dpoke Gintin,Lightx
Dpoke Gintin+2,Lighty
Dpoke Gintin+4,Wsgx
Dpoke Gintin+6,Hsgy
Dpoke Gintin+8,Lox
Dpoke Gintin+10,Loy
Dpoke Gintin+12,Wx
Dpoke Gintin+14,Hy
If Gem=1
Gemsys (73)
Else
Gemsys (74)
Endif
Return